/**
 * @(#)com.framework.web.bus.BusUtils.StrUtils
 *
 * Copyright (c) 2014-2018 ﻿上海XX科技有限公司
 *
 * DESC:
 *
 */
package com.framework.core.util;

import java.util.UUID;

/**
 * @author zqtao
 * @version 1.0  2016-9-7
 */
public class FileUtils {

    public static String getFileType(String fileName){
        int index = fileName.lastIndexOf(".");
        if(index!=-1){
            return fileName.substring(index);
        }
        return null;
    }

    public static String getUUID(){
        return UUID.randomUUID().toString().replace("-","").trim();
    }
}
